package com.tang.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tang.entity.Department;
import com.tang.mapper.DepartmentMapper;
import com.tang.service.IDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tang.vo.DepartmentVo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fulin.tang@unisoc.com
 * @since 2021-07-27
 */
@Service
@RequiredArgsConstructor
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements IDepartmentService {

    private final DepartmentMapper departmentMapper;
    
    @Override
    public IPage<DepartmentVo> getPage(Page<DepartmentVo> page) {
        return departmentMapper.selectPageVo(page);
    }
    
}
